/**
 * @projectName:hxqbNewsMiddleware
 * @packageName:com.hx.news.middleware.newsComment.service.impl
 * @className:NewsCommentServiceImpl.java
 * 
 * @createTime:2015年5月12日-下午3:52:15
 * 
 * 
 */
package com.yn.xr.middleware.news.service.impl;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.yn.core.service.impl.BaseServiceImpl;
import com.yn.xr.common.page.Page;
import com.yn.xr.common.page.PageResult;
import com.yn.xr.middleware.news.service.NewsCommentService;
import com.yn.xr.news.dao.NewsCommentDao;
import com.yn.xr.news.mode.NewsComment;
import com.yn.xr.news.mode.NewsInfo;

/**
 * @description:
 * @fileName:NewsCommentServiceImpl.java
 * @createTime:2015年5月12日 下午3:52:15
 * @author:HX1401125
 * @version 1.0.0
 * 
 */
public class NewsCommentServiceImpl  extends BaseServiceImpl<NewsComment, Integer> implements NewsCommentService {

	private static final long serialVersionUID = -803599127853119352L;

	// 日志对象
	private static final Logger log = LoggerFactory
			.getLogger(NewsCommentServiceImpl.class);

	@Resource
	private NewsCommentDao newsCommentDao;

	@Override
	public Page<NewsComment> queryCommentPage(String hql ,Object[] queryParams , int pageNum, int pageSize ) throws Exception{
		return this.page(pageSize, pageNum, hql, queryParams);
	}

	@Override
	public void saveNewsComment(NewsComment newsComment) throws Exception {
		newsCommentDao.save(newsComment);
	}

	@Override
	public boolean updateNewsComment(NewsComment newsComment) throws Exception {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean deleteNewsComment(NewsComment newsComment) throws Exception {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public int deleteNewsCommentBynewsId(Integer newsId) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public NewsComment getNewsCommentById(Integer id) throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public PageResult<NewsComment> queryNewsCommentList(Integer newsId,
			Integer status, Integer pageSize, Integer pageNum) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int getMaxnewsPriseTimes(Integer newsId) {
		// TODO Auto-generated method stub
		return 0;
	}

}
